package io.renren.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.app.entity.EarningsRecordingEntity;
import io.renren.modules.app.entity.vo.QueryEarningsParam;
import io.renren.modules.app.entity.vo.QueryWithdrawalsParam;
import io.renren.modules.app.entity.vo.SelectEarningsData;
import io.renren.modules.app.entity.vo.SelectWithdrawalsData;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 收益记录表
 *
 * @date 2022-04-20 22:37:45
 */
public interface EarningsRecordingService extends IService<EarningsRecordingEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取收益记录
     *
     * @param userIds 用户id 集合
     * @return
     */
    public List<EarningsRecordingEntity> getEarningsListByUserIdsgetEarningsRecord(List<Long> userIds);

    /**
     * 获取用户今日收益金额
     *
     * @param userId 用户id
     * @return
     */
    public BigDecimal queryUserTodayIncomeAmount(Long userId);

    /**
     * 统计用户总收益
     *
     * @param userId 用户id
     * @return
     */
    public BigDecimal queryUserTotalRevenue(Long userId);

    /**
     * 分页获取收益记录
     */
    public SelectEarningsData queryEarningsRecording(QueryEarningsParam earningsParam);
}

